package pl.lodz.p.browarex.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import pl.lodz.p.browarex.base.BaseCrudService;
import pl.lodz.p.browarex.dao.AnalysisTypeDAO;
import pl.lodz.p.browarex.model.AnalysisType;
import pl.lodz.p.browarex.services.interfaces.IAnalysisTypeService;

@Transactional
@Repository
public class AnalysisTypeService extends
		BaseCrudService<AnalysisTypeDAO, AnalysisType, Long> implements
		IAnalysisTypeService {

	@Autowired
	public AnalysisTypeService(AnalysisTypeDAO dao) {
		super(dao);
	}

	@Override
	public AnalysisType loadByCustomerID(String customerID) {
		return ((AnalysisTypeDAO) dao).loadByCustomerID(customerID);
	}

}
